<?php

class PostDzAction extends CAction
{
    public function run()
    {
		echo ' you success';						
		$c = new SaeTClientV2( WB_AKEY , WB_SKEY , $_SESSION['token']['access_token'] );									
		$ms  = $c->home_timeline(); 		
		$uid_get = $c->get_uid();						
		$uid = $uid_get['uid'];				
		$user_message = $c->show_user_by_id( $uid);						
		/*var_dump($_SESSION);						
		var_dump($_REQUEST);*/						
		//var_dump($ms);
		
		if( is_array( $ms['statuses'] ) ){
			foreach( $ms['statuses'] as $item ){
				echo '<div style="padding:10px;margin:5px;border:1px solid #ccc">';
					echo $item['text'];
				echo '</div>';
				}
			}    
	}
}